home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
painte1a
/
frmlogin.frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1999-09-07
|
3KB
|
89 lines
VERSION 5.00
Begin VB.Form frmLogin
BorderStyle = 3 'Fixed Dialog
Caption = "Login..."
ClientHeight = 1785
ClientLeft = 45
ClientTop = 330
ClientWidth = 4755
Icon = "frmLogin.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1785
ScaleWidth = 4755
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Tag = "Login"
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "Cancel"
Height = 360
Left = 2610
TabIndex = 3
Tag = "Cancel"
Top = 1380
Width = 1140
End
Begin VB.CommandButton cmdOK
Caption = "OK"
Default = -1 'True
Height = 360
Left = 1005
TabIndex = 2
Tag = "OK"
Top = 1380
Width = 1140
End
Begin VB.TextBox txtPassword
Height = 285
IMEMode = 3 'DISABLE
Left = 1800
PasswordChar = "*"
TabIndex = 1
Top = 780
Width = 2325
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = $"frmLogin.frx":0442
Height = 645
Left = 75
TabIndex = 4
Top = 75
Width = 4515
End
Begin VB.Label lblLabels
Caption = "&Password:"
Height = 255
Index = 1
Left = 600
TabIndex = 0
Tag = "&Password:"
Top = 795
Width = 1080
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OK As Boolean
Private Sub cmdCancel_Click()
OK = False
Me.Hide
End Sub
Private Sub cmdOK_Click()
'ToDo: create test for correct password
'check for correct password
If txtPassword.Text = "catzndogz" Then
OK = True
Me.Hide
Else
MsgBox "Invalid Password, try again!", , "Login"
txtPassword.SetFocus
txtPassword.SelStart = 0
txtPassword.SelLength = Len(txtPassword.Text)
End If
End Sub